package com.hzpjxld.ssh.guoshui.dao;

import com.hzpjxld.ssh.guoshui.model.Person;
import org.springframework.orm.hibernate5.support.HibernateDaoSupport;

import java.io.Serializable;

/**
 * Created by Administrator on 2018-04-21.
 */
public class TestDaoImpl extends HibernateDaoSupport implements TestDao {
    @Override
    public void save(Person person) {
        getHibernateTemplate().save(person);
    }

    @Override
    public Person findPerson(Serializable id) {
        return getHibernateTemplate().get(Person.class, id);
    }
}
